﻿<%@ Page Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="EditRetreat.aspx.cs" Inherits="RedemptoristRetreatCenter.EditRetreat" %>

<asp:Content runat="server" ID="FeaturedContent" ContentPlaceHolderID="FeaturedContent">
    <section class="featured">
        <div class="content-wrapper">
            <hgroup class="title">
                <h1><%: Title %>Edit Retreat</h1>
            </hgroup>                   
            <table style="width: 100%;">
                <tr>
                    <td class="auto-style1"><%--Retreat:--%>&nbsp;</td><td class="auto-style2"><asp:DropDownList ID="ddRetreatList" runat="server" visible="false"
                    Height="22px" Width="200px" OnLoad="retreatList_OnLoad"></asp:DropDownList></td>
                </tr>
                <tr>
                    <td class="auto-style1">New Title:&nbsp;</td><td class="auto-style2"><asp:TextBox ID="txtTitle" runat="server" Width="406px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td class="auto-style1">New Description:&nbsp;</td><td class="auto-style2"><asp:TextBox ID="txtDesc" TextMode="MultiLine" runat="server" Width="406px" Wrap="true" Height="66px" ></asp:TextBox></td>
                </tr>
                <tr>
                    <td class="auto-style1">New Duration:&nbsp;</td><td class="auto-style2"><asp:TextBox ID ="txtDuration" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <td class="auto-style1">New Fee:&nbsp;</td><td class="auto-style6">
                        <asp:TextBox ID ="txtFee" runat="server"></asp:TextBox>
                        <asp:CompareValidator id="CompareValidator1" runat="server" ControlToValidate="txtFee" Operator="DataTypeCheck"
                           Type="Currency"  Display="Dynamic" ErrorMessage="Illegal format for currency" />
                        <asp:RangeValidator id="RangeValidator1" runat="server" ControlToValidate="txtFee"
                           Type="Currency" MinimumValue="1.00" MaximumValue="999.99" ErrorMessage="Out of range" Display="Dynamic" />

                                                               </td>
                </tr>
                <tr>
                <td class="auto-style1">New Category:&nbsp;</td><td><asp:DropDownList ID="ddCategoryList" runat="server" 
                    Height="22px" Width="200px" OnLoad="categoryList_OnLoad"></asp:DropDownList></td>
                </tr>
            </table>
            <br/>
            <br/>
            <asp:Button runat="server" ID="save"  OnClick="save_Click" Text="Save" ForeColor="#000000">
            </asp:Button>&nbsp;&nbsp;
            <asp:Button runat="server" ID="delete"  OnClick="delete_Click" Text="Delete" ForeColor="#000000">
            </asp:Button>&nbsp;&nbsp;

            
            <asp:Literal ID="statusMessage" runat="server"></asp:Literal>
        </div>
    </section>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
</asp:Content>